package com.chaos.eurekaproducer.test;

/**
 * @author liaopeng
 * @title: ThreadTest1
 * @projectName eureka-producer
 * @description: TODO
 * @date 2021/7/30下午5:08
 */
public class ThreadTest1 {
    public static void main(String[] args) {
        Thread t1 = new Thread(new Incr());
    }


    static class Incr implements Runnable{

        @Override
        public void run() {
            for (int i = 0; i < 100; i++) {
                 i++;
            }
        }
    }

    static class Desc implements Runnable{

        @Override
        public void run() {
            for (int i = 0; i < 100; i++) {
                i--;
            }
        }
    }


}
